# poison_buff.gd
class_name PoisonBuffResource
extends BuffResource

@export var damage_per_second: float = 10.0  # 每秒伤害

func update_effect(target: Node, delta: float):
	if target.has_method("take_damage"):
		target.take_damage(damage_per_second * delta)
